package com.woniu.woniuproject.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniu.woniuproject.entity.Account_log;
import com.woniu.woniuproject.mapper.Account_logMapper;
import com.woniu.woniuproject.vo.Accountwatervo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能描述:<br>
 * 〈〉
 *
 * @author 徐威
 * @create 2020/11/18
 * @since 1.0.0
 */
@Service
public class FlowingWaterService {
    @Autowired
    Account_logMapper account_logMapper;

    public PageInfo<Account_log> queryAllBy(Accountwatervo accountwatervo) {
        PageHelper.startPage(accountwatervo.getNowPage(),accountwatervo.getMaxPage());
       List<Account_log> list = account_logMapper.selectByvo(accountwatervo);
        return new PageInfo<Account_log>(list);
    }
}
